﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DeliveryDateManager.aspx.cs"
    Inherits="Admin_DeliveryDateManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>配送时段管理</title>
    <link href="AdminCSS/style.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp;配送时段名称：<asp:TextBox ID="txtDeliverPeroid" runat="server"></asp:TextBox>
        &nbsp;配送最后时刻：<asp:TextBox ID="txtDeliveryEnd" runat="server" 
            onfocus="WdatePicker({dateFmt:'H:mm:ss',minDate:'0:00:00',maxDate:'24:00:00'})"></asp:TextBox>
        &nbsp;<asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="添加" />
        <table border="0" cellpadding="0" cellspacing="1" width="100%" style="background: Black;">
            <tr style="height: 27px">
                <td align="center" style="background: #DFDEDC;">
                    ID<asp:HiddenField runat="server" ID="HId" />
                </td>
                <td align="center" style="background: #DFDEDC;">
                    配送时段名称
                </td>
                <td align="center" style="background: #DFDEDC;">
                    配送最后时刻
                </td>
                <td align="center" style="background: #DFDEDC;">
                    操作
                </td>
            </tr>
            <asp:Repeater runat="server" ID="rptDeliveryPeriod" OnItemCommand="rptDeliveryPeriod_ItemCommand">
                <ItemTemplate>
                    <tr style="background: White; height: 27px;">
                        <td align="center">
                            <%#Eval("Id") %>
                        </td>
                        <td align="center">
                            <%#Eval("DeliveryPeriodName")%>
                        </td>
                        <td align="center">
                            <%#Convert.ToDateTime(Eval("EndTime").ToString()).TimeOfDay%>
                        </td>
                        <td align="center">
                            <asp:Button ID="btnDel" CausesValidation="false" runat="server" CommandArgument='<%#Eval("Id") %>'
                                CommandName="Del" Text="删除" />
                            <asp:Button ID="btnModify" CausesValidation="false" runat="server" CommandArgument='<%#Eval("Id") %>'
                                CommandName="Modify" Text="编辑" />
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </div>
    </form>
</body>
</html>
